// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]


mod error;
mod service;
mod utils;

fn main() {
    tauri::Builder::default()
        .invoke_handler(tauri::generate_handler![
            service::active_ports,
            service::is_open,
            service::open_port,
            service::close_port,
            service::write_port
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
